/*
 * @Author: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @Date: 2025-07-02 09:19:38
 * @LastEditors: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @LastEditTime: 2025-09-18 09:41:01
 * @FilePath: \keep_motion_api\routes\sys.route.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const express = require('express');
const router = express.Router();

const { dictType, dictData, file } = require('@/controllers/admin/sys');


// 字典类型
router.get('/dict-types', dictType.getDictType);
router.post('/dict-types', dictType.createDictType);
router.put('/dict-types/:id', dictType.updateDictType);
router.delete('/dict-types/:id', dictType.deleteDictType);
router.post('/dict-types/import', dictType.importDictType);
router.get('/dict-types/export', dictType.exportDictType);


// 字典数据
router.get('/dict-data', dictData.getDictData);
router.post('/dict-data', dictData.createDictData);
router.put('/dict-data/:id', dictData.updateDictData);
router.patch('/dict-data/:id', dictData.updateDictDataStatus);
router.post('/dict-data/import', dictData.importDictData);

// 文件管理
router.post('/file/upload/:module', file.uploadFile);
 

module.exports = router;

